<style>
    .forx {
        display: none;
    }
</style>
{{$ip_list:=.ip_list}} {{$regions:=.regions}}

<div class="panel panel-default">
    <div class="panel-body">
        <form class="form-horizontal ajaxform" ajaxSuccess="success" ajaxAlways="always" method="post" action="/web/IpList/{{.action}}">
            <input type="hidden" name="ip_list_id" value="{{$ip_list.ip_list_id}}">
            <div class="form-group">
                <label class="col-sm-2 control-label"><span class="text-danger"> * </span>IP</label>
                <div class="col-sm-4">
                    <input type="text" name="ip" class="form-control" value="{{$ip_list.ip}}">
                </div>
                <div class="col-md-4">
                    <span class="text-danger"> * </span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"><span class="text-danger"> * </span>类型</label>
                <div class="col-sm-4">
                    <select name="cs_type" class="form-control" default="{{$ip_list.cs_type}}">
                                <option value="server">Server</option>                   
                                <option value="client">Client</option>
                        </select>
                </div>
                <div class="col-md-4">
                    <span class="text-danger"> * </span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"><span class="text-danger"> * </span>访问控制</label>
                <div class="col-sm-4">
                    <select name="is_forbidden" class="form-control" default="{{$ip_list.is_forbidden}}">
                                    <option value="1">禁止</option>                   
                                    <option value="0">允许</option>
                    </select>
                </div>
                <div class="col-md-4">
                    <span class="text-danger"> * </span>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-success">保存</button>
                </div>
            </div>
        </form>
    </div>
</div>